<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreatePacksTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('packs', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('customer_id')->comment('对应的客户ID');
			$table->integer('store_id')->default(0)->comment('对应店铺ID (总店或分店) ，0：总店');
			$table->integer('pack_category_id')->unsigned()->default(0)->comment('对应整体妆容分类ID');
			$table->string('thumb')->default('')->comment('缩略图');
			$table->string('name', 100)->comment('整体妆容名称');
			$table->integer('priority')->default(0)->comment('显示优先级');
			$table->integer('is_deleted')->nullable()->default(0)->comment('是否删除 0:未删除。1：删除');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('packs');
	}

}
